import { ConvertUnitType } from "../converters";

// ===================================================
// Unit Type Constants for use with IsUnitType()
// ===================================================

export const UNIT_TYPE_HERO = ConvertUnitType(0);
export const UNIT_TYPE_DEAD = ConvertUnitType(1);
export const UNIT_TYPE_STRUCTURE = ConvertUnitType(2);

export const UNIT_TYPE_FLYING = ConvertUnitType(3);
export const UNIT_TYPE_GROUND = ConvertUnitType(4);

export const UNIT_TYPE_ATTACKS_FLYING = ConvertUnitType(5);
export const UNIT_TYPE_ATTACKS_GROUND = ConvertUnitType(6);

export const UNIT_TYPE_MELEE_ATTACKER = ConvertUnitType(7);
export const UNIT_TYPE_RANGED_ATTACKER = ConvertUnitType(8);

export const UNIT_TYPE_GIANT = ConvertUnitType(9);
export const UNIT_TYPE_SUMMONED = ConvertUnitType(10);
export const UNIT_TYPE_STUNNED = ConvertUnitType(11);
export const UNIT_TYPE_PLAGUED = ConvertUnitType(12);
export const UNIT_TYPE_SNARED = ConvertUnitType(13);

export const UNIT_TYPE_UNDEAD = ConvertUnitType(14);
export const UNIT_TYPE_MECHANICAL = ConvertUnitType(15);
export const UNIT_TYPE_PEON = ConvertUnitType(16);
export const UNIT_TYPE_SAPPER = ConvertUnitType(17);
export const UNIT_TYPE_TOWNHALL = ConvertUnitType(18);
export const UNIT_TYPE_ANCIENT = ConvertUnitType(19);

export const UNIT_TYPE_TAUREN = ConvertUnitType(20);
export const UNIT_TYPE_POISONED = ConvertUnitType(21);
export const UNIT_TYPE_POLYMORPHED = ConvertUnitType(22);
export const UNIT_TYPE_SLEEPING = ConvertUnitType(23);
export const UNIT_TYPE_RESISTANT = ConvertUnitType(24);
export const UNIT_TYPE_ETHEREAL = ConvertUnitType(25);
export const UNIT_TYPE_MAGIC_IMMUNE = ConvertUnitType(26);
